/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2019-03-26     quanzhao     the first version
 */
#ifndef T113_IRQNUM_H_
#define T113_IRQNUM_H_

#define T113_GIC_DIST_BASE   0x03021000
#define T113_GIC_CPU_BASE    0x03022000

#define T113_IRQ_UART0				(34)
#define T113_IRQ_UART1				(35)
#define T113_IRQ_UART2				(36)
#define T113_IRQ_UART3				(37)
#define T113_IRQ_UART4				(38)
#define T113_IRQ_UART5				(39)
#define T113_IRQ_TWI0				(41)
#define T113_IRQ_TWI1				(42)
#define T113_IRQ_TWI2				(43)
#define T113_IRQ_TWI3				(44)
#define T113_IRQ_SPI0				(47)
#define T113_IRQ_SPI1				(48)
#define T113_IRQ_PWM				(50)
#define T113_IRQ_IR_TX				(51)
#define T113_IRQ_LEDC				(52)
#define T113_IRQ_OWA				(55)
#define T113_IRQ_DMIC				(56)
#define T113_IRQ_AUDIO_CODEC		(57)
#define T113_IRQ_I2S0				(58)
#define T113_IRQ_I2S1				(59)
#define T113_IRQ_I2S2				(60)
#define T113_IRQ_USB0_DEVICE		(61)
#define T113_IRQ_USB0_EHCI			(62)
#define T113_IRQ_USB0_OHCI			(63)
#define T113_IRQ_USB1_EHCI			(65)
#define T113_IRQ_USB1_OHCI			(66)
#define T113_IRQ_SMHC0				(72)
#define T113_IRQ_SMHC1				(73)
#define T113_IRQ_SMHC2				(74)
#define T113_IRQ_MSI				(75)
#define T113_IRQ_SMC				(76)
#define T113_IRQ_EMAC				(78)
#define T113_IRQ_TZMA_ERR			(79)
#define T113_IRQ_ECCU_FERR			(80)
#define T113_IRQ_AHB_TIMEOUT		(81)
#define T113_IRQ_DMAC_NS			(82)
#define T113_IRQ_DMAC_S				(83)
#define T113_IRQ_CE_NS				(84)
#define T113_IRQ_CE_S				(85)
#define T113_IRQ_SPINLOCK			(86)
#define T113_IRQ_HSTIME0			(87)
#define T113_IRQ_HSTIME1			(88)
#define T113_IRQ_GPADC				(89)
#define T113_IRQ_THS				(90)
#define T113_IRQ_TIMER0				(91) 
#define T113_IRQ_TIMER1				(92)
#define T113_IRQ_LRADC				(93)
#define T113_IRQ_TPADC				(94)
#define T113_IRQ_WATCHDOG			(95)
#define T113_IRQ_IOMMU				(96)
#define T113_IRQ_VE					(98)
#define T113_IRQ_GPIOB_NS			(101)
#define T113_IRQ_GPIOB_S			(102)
#define T113_IRQ_GPIOC_NS			(103)
#define T113_IRQ_GPIOC_S			(104)
#define T113_IRQ_GPIOD_NS			(105)
#define T113_IRQ_GPIOD_S			(106)
#define T113_IRQ_GPIOE_NS			(107)
#define T113_IRQ_GPIOE_S			(108)
#define T113_IRQ_GPIOF_NS			(109)
#define T113_IRQ_GPIOF_S			(110)
#define T113_IRQ_GPIOG_NS			(111)
#define T113_IRQ_DE					(119)
#define T113_IRQ_DI					(120)
#define T113_IRQ_G2D				(121)
#define T113_IRQ_LCD				(122)
#define T113_IRQ_TV					(123)
#define T113_IRQ_DSI				(124)
#define T113_IRQ_CSI_DMA0			(127)
#define T113_IRQ_CSI_DMA1			(128)
#define T113_IRQ_CSI_PARSER0		(132)
#define T113_IRQ_CSI_TOP_PKT		(138)
#define T113_IRQ_TVD				(139)
#define T113_IRQ_DSP_DFE			(152)
#define T113_IRQ_DSP_PFE			(153)
#define T113_IRQ_DSP_WDG			(154)
#define T113_IRQ_DSP_MBOX_RISCV_W	(155)
#define T113_IRQ_DSP_TZMA			(157)


// #define T113_IRQ_NMI				(168)
// #define T113_IRQ_PPU				(169)
// #define T113_IRQ_TWD				(170)
// #define T113_IRQ_TIMER0				(172)  
// #define T113_IRQ_TIMER1				(173)
// #define T113_IRQ_TIMER2				(174)
// #define T113_IRQ_TIMER3				(175)
// #define T113_IRQ_ALARM0				(176)
// #define T113_IRQ_IRRX				(183)
// #define T113_IRQ_C0_CTI0			(192)
// #define T113_IRQ_C0_CTI1			(193)
// #define T113_IRQ_C0_COMMTX0			(196)
// #define T113_IRQ_C0_COMMTX1			(197)
// #define T113_IRQ_C0_COMMRX0			(200)
// #define T113_IRQ_C0_COMMRX1			(201)
// #define T113_IRQ_C0_PMU0			(204)
// #define T113_IRQ_C0_PMU1			(205)
// #define T113_IRQ_C0_AXI_ERROR		(208)
// #define T113_IRQ_AXI_WR_IRQ			(210)
// #define T113_IRQ_AXI_RD_IRQ			(211)
// #define T113_IRQ_DBGWRUPREQ_OUT0	(212)
// #define T113_IRQ_DBGWRUPREQ_OUT1	(213)

#define t113_IRQ_COUNT     223

#endif  /* T113_IRQNUM_H_ */
